package com.jader.beans;

import java.io.Serializable;

public class DianzanBens implements Serializable {

	private static final long serialVersionUID = 1L;
	int id;
	long tiezi_id;
	int userid;

	public int getId() {
		return id;
	}

	public DianzanBens(int id, long tiezi_id, int userid) {
		super();
		this.id = id;
		this.tiezi_id = tiezi_id;
		this.userid = userid;
	}

	public void setId(int id) {
		this.id = id;
	}

	public long getTiezi_id() {
		return tiezi_id;
	}

	public void setTiezi_id(long tiezi_id) {
		this.tiezi_id = tiezi_id;
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		result = prime * result + (int) (tiezi_id ^ (tiezi_id >>> 32));
		result = prime * result + userid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DianzanBens other = (DianzanBens) obj;
		if (id != other.id)
			return false;

		return true;
	}

	@Override
	public String toString() {
		return "DianzanBens [id=" + id + ", tiezi_id=" + tiezi_id + ", userid="
				+ userid + "]";
	}

}
